package com.samuel.learning.collection.interview;

import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class CurrentHashMapDemo {


    public static void main(String[] args) {

        Map<String,String> map = new HashMap<>();
        //方式1
        //map = Collections.synchronizedMap(map);

        Map<String,String> map2 = new ConcurrentHashMap<>();






    }
}
